package com.asiainfo.wx.api.apibase.exception;

import com.asiainfo.wx.api.apibase.constants.WxResultEnum;

/**
 * Copyright: Copyright (c) 2019  zteits
 *
 * @ClassName: com.asiainfo.wx.api.apibase.exception
 * @Description: 业务异常
 * @version: v1.0.0
 * @author: atao
 * @date: 2019-10-30   17:33
 * Modification History:
 * Date         Author          Version      Description
 * ---------------------------------------------------------*
 * 2019-10-30      atao          v1.0.0          创建
 */
public class BizException extends AppException {

    private WxResultEnum wxResultEnum;

    public BizException(WxResultEnum wxResultEnum, String msg) {
        super(msg);
        this.wxResultEnum = wxResultEnum;
    }

    public BizException(WxResultEnum wxResultEnum) {
        super(wxResultEnum.getDefaultMsg());
        this.wxResultEnum = wxResultEnum;
    }

    @Override
    public WxResultEnum getWxResultEnum() {
        return wxResultEnum;
    }



}
